//
//  WebViewController.m
//  110
//
//  Created by lanou on 16/4/19.
//  Copyright © 2016年 乔砥. All rights reserved.
//

#import "WebTwoViewController.h"

@interface WebTwoViewController () <UIWebViewDelegate>

@end

@implementation WebTwoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.navigationController.navigationBar.translucent = NO;
    
    
    UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 20, KWIDTH, KHEIGHT)];
    
    // 2.通过request来加载webView
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.pharmnet.com.cn/search/"]];
    [webView loadRequest:request];
    
    
    webView.delegate = self;
    
    [self.view addSubview:webView];


    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
